package com.qf.base.service.impl;

import com.qf.base.domain.BaseGoods;
import com.qf.base.mapper.BaseGoodsMapper;
import com.qf.base.service.IBaseGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.ParameterResolutionDelegate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/4
 * @desc
 */
@Service
public class BaseGoodsServiceImpl implements IBaseGoodsService {

    @Autowired
    private BaseGoodsMapper baseGoodsMapper;
    @Override
    public List<BaseGoods> selectGoodsList(BaseGoods goods) {
        return baseGoodsMapper.selectGoodsList(goods);
    }

    @Override
    public int insertGoods(BaseGoods goods) {
        return baseGoodsMapper.insertGoods(goods);
    }

    @Override
    public int updateGoods(BaseGoods goods) {
        return baseGoodsMapper.updateGoods(goods);
    }

    @Override
    public BaseGoods selectGoodsById(Long goodsId) {
        return baseGoodsMapper.selectGoodsById(goodsId);
    }

    @Override
    public int deleteGoodsByIds(Long[] ids) {
        return baseGoodsMapper.deleteGoodsByIds(ids);
    }
}
